public class Example3_7{
    public static void main(String[] args) {
        int sum=0, i, j;
        for(i=1; i<=10; i++){
            if(i%2==0){                     //计算1+3+5+7+9
                continue;
            }
            sum=sum+i;
        }
        System.out.println("sum="+sum);
        for(j=2; j<=5218; j++){                //求100以内的素数
            for(i=2; i<=j/2; i++){
                if(j%i==0)
                    break;
            }
            if(i>j/2)
                System.out.println(""+j+"是素数");
        }
    }
}
